import  datetime

# 获取当前时间往前一个月的时间戳
now = datetime.datetime.now()
last_month = now - datetime.timedelta(days=30)
print(int(last_month.timestamp()))
